function IsTure(){
    let formData = new FormData(document.querySelector("#myform"));
    $.ajax({
        url: "/login",
        type: "post",
        data:{
            account:formData.get("account"),
            pwd:formData.get("pwd")
        },
        dataType:"json",
        success: (r => {
            console.log("后台相应的结果是：",r)
            if (r == -1) {
                alert("密码错误！！！！")
            } else if(r==-2){
                alert("账号错误！！！！")
            }else if (r==-3){
               alert("你已经被管理员拉黑")
            }else {
                if (r[1]=="已重置"){
                    location.href="/index";
                    alert("您的头像由于违规已重置！具体情况请与管理员联系！")
                }{
                    location.href="/index";
                }
            }
        })
    })
}
function Enroll(){
    $.ajax({
        url:"/login",
        type: "get",
        data: {

        },
        complete:function (){
            location.href="/enroll";
        }
    })
}